<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/custom/login.js"></script>
<title>添加员工信息</title>
<body class="withvernav">
    <div class="bodywrapper">
        {{include file='/public/leftmenu.tpl'}}
        <div class="centercontent">

            <div class="pageheader">
                <h1 class="pagetitle">修改资料</h1>

            </div><!--pageheader-->

            <div id="contentwrapper" class="contentwrapper">

                <div id="basicform" class="subcontent">
<div class="nousername">
				<div class="loginmsg"></div>
            </div>
                    <!--contenttitle-->

                    <form id="form" class="stdform stdform2" method="post" action="/user/savepassword">

                        <p>
                            <label>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
                            <span class="field"><input type="password" name="password" id="password" class="_check longinput" value="" /></span>
                        </p>
                        <p>
                            <label>确认密码：</label>
                            <span class="field"><input type="password" name="cnpassword" id="cnpassword" class="_check longinput" value="" /></span>
                        </p>

                        <!-- <p>
                                 <label>Email：</label>
                             <span class="field"><input type="text" name="email" id="email2" class="longinput" name="email" /></span>
                         </p>-->
 </form>
                        <p class="stdformbutton">
                           <button onclick="changepw()" id="btn" class="stdbtn btn_orange">确定修改</button>
                            <input type="hidden"  name="uid" value="{{$detail.id}}" />
                        </p>

                   



                    <br />

                </div><!--subcontent-->

                <!--subcontent-->

            </div><!--contentwrapper-->

        </div><!-- centercontent -->


    </div><!--bodywrapper-->

    <script type="text/javascript">
		/*
        $('#btn').on('click', function () {

            var password = $('#password');
            var confirm_password = $('#confirm_password');

            $('._check').each(function (index, element) {

                if ($(this).val() == '') {

                    s = $(this).parent().siblings('label').html();

                    $(this).after('<br /><span style="color:#ff0000;">请输入' + s.replace(/：/, '') + '</span>');
                    $(this).focus();
                    exit;
                }
            });

            if (password.val() == confirm_password.val()) {

                $('#form').submit();
            } else {

                confirm_password.after('<br /><span style="color:#ff0000;">密码和确认密码不一致。</span>');
            }
			
			

        });*/

    </script>

</body>
</html>
